<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的请求</title>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12 col-sm-12 col-xs-12">
            <div class="widget  no-padding">
                <div class="widget-header bg-themeprimary">
                    <i class="widget-icon typcn typcn-th-list"></i>
                    <span class="widget-caption" data-culture="jobList">待办</span>
                </div>
                <div class="widget-body">
                    <table id="grid-data">
                        <thead>
                        <tr>
                            <th style="text-align: center;">流程名称</th>
                            <th style="text-align: center;">业务类别</th>
                            <th style="text-align: center;">申请人</th>
                            <th style="text-align: center;">申请时间</th>
                            <th style="text-align: center;">当前环节</th>
                            <th style="text-align: center;">当前处理人</th>
                            <th style="text-align: center;">发起单位</th>
                            <th style="width: 200px; text-align: center;">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr class="row-no-display">
                            <td style="text-align: center;">$instanceName$</td>
                            <td style="text-align: center;">$templateName$</td>
                            <td style="text-align: center;">$startUserName$</td>
                            <td style="text-align: center;">$startTime$</td>
                            <td style="text-align: center;">$activityName$</td>
                            <td style="text-align: center;">$handlers$</td>
                            <td style="text-align: center;">$orgName$</td>
                            <td class="text-left" style="text-align: center;">
                                <a rel='doworkflow' class="btn btn-info btn-xs edit"><i
                                        class="fa fa-edit"></i><span >终止</span></a>
                                <a rel='doworkflow' class="btn btn-info btn-xs edit"><i
                                        class="fa fa-edit"></i><span >取回</span></a>

                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var mycreateObj = {
        grid: {
            keys: ['jobName'],
            url: "/workflow/instance/find/create",
            placeholder: '',
            stableparm: function () {
                return {};
            },
            events: {
                doworkflow: function (row) {
                    var parm = {
                        workItem:row,
                        instanceId:row.instanceId,
                        templateId: row.templateId
                    }
                    util.openUrl("/views/workflow/wfprove.html?P=" + encodeURIComponent($.toJSON(parm)));

                }
            }

        }
    }


    function init() {
        $("#grid-data").table(mycreateObj.grid);

    }
    function dispose() {
        mycreateObj = {};
    }
</script>
</body>
</html>